package com.openlab.service.basic.epidemic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.openlab.service.basic.epidemic.dto.UserBuildingDto;
import com.openlab.service.basic.epidemic.entity.UserBuilding;
import com.openlab.service.basic.epidemic.mapper.UserBuildingMapper;
import com.openlab.service.basic.epidemic.service.UserBuildingService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: TODO
 * @Author: Csl
 * @DateTime: 2022/8/16
 */
@Service
public class UserBuildingServiceImpl extends ServiceImpl<UserBuildingMapper, UserBuilding> implements UserBuildingService {
    @Override
    public List<UserBuildingDto> findBuilding(Long userId, Integer community_id) {
        return baseMapper.selectBuilding(userId,community_id);
    }

    @Override
    public List<UserBuilding> selectUserBuilding(Long wechatId, Long building_id, Long community_id) {
        return baseMapper.selectUserBuilding(wechatId,building_id,community_id);
    }
}
